package me.lwn.auth.security.utils;

import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ResourceBundleMessageSource;

public class LocalMessageSource extends ResourceBundleMessageSource {

    public LocalMessageSource() {
        setBasename("messages.messages");
    }

    public static MessageSourceAccessor getAccessor() {
        return new MessageSourceAccessor(new LocalMessageSource());
    }
}